﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="shop.aspx.cs" Inherits="OF.Web.shop" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="res/js/jquery-1.8.1.min.js"></script>
    <script src="res/js/jquery.cookie.js"></script>
    
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <h1>进馆子选菜</h1>
        <div>
            <asp:Repeater ID="rptList" runat="server">
                <ItemTemplate>
                    <img src="<%#Eval("photo") %>"/>
                    <%#Eval("dishname") %>
                    <%#Eval("price") %>
                    <input id="addcart" type="button" value="加入菜单" onclick='AddToCart(<%#Eval("id")%>,"<%#Eval("dishname") %>",<%#Eval("price") %>)' />
                    <br />
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div id="shopcart">
        </div>

    </form>
    <script src="res/js/shopcart.js"></script>
    <script>
        $(BuildCart());
    </script>
</body>
</html>
